package com.liyunc.demo.custom.livechat.manager;

import com.liyunc.demo.custom.livechat.client.Client;

import java.io.IOException;

public class ClientFactory {

    private static final class ClientHolder {
        static Client client = null;

        static {
            try {
                client = new Client();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
    }

    public static Client getSocketClient() {
        return ClientHolder.client;
    }
}
